import { request } from '@/utils';

// 企业信息
export const info = () => {
  return request({
    url: '/business/base/main-info',
    method: 'get',
  });
};

// 修改企业名称
export const updateName = (data) => {
  return request({
    url: '/business/base/update',
    method: 'put',
    data,
  });
};

// 服务是否过期、账号被限制
export const check = () => {
  return request({
    url: '/activity/base/check',
    method: 'get',
    showDialog: false, // 当接口response的code不是200时，不显示默认弹框
  });
};

// 是否存在草稿
export const checkEdit = () => {
  return request({
    url: '/activity/base/checkEdit',
    method: 'get',
  });
};

// 活动列表
export const list = (data) => {
  return request({
    url: '/activity/base/main-page',
    method: 'post',
    data,
  });
};

// 客服
export const service = (data) => {
  return request({
    url: '/payment/getCustomerQrcode',
    method: 'get',
  });
};
